objects=autostatus.lo config_rule.lo network_setting.lo time_setting.lo
install_path=$(DESTDIR)/usr/lib/pidgin
CFLAGS=`pkg-config --libs --cflags pidgin gtk+-2.0 glib-2.0 dbus-glib-1 libnm-util`

%.lo:%.c
	libtool --mode=compile gcc -Wall $(CFLAGS) -c $<

autostatus.la:$(objects)
	libtool --mode=link  gcc -Wall $(CFLAGS) $^ -o autostatus.la -rpath $(install_path) -module -avoid-version

install:
	install -d $(install_path)
	libtool --mode=install install -c autostatus.la $(install_path) 

clean:
	-rm *.o *.lo *.la

